<template>
  <div class="app-container">
    <!-- v-loading="listLoading" -->
    <div style="display: inline-block">
      <label class="radio-label" style="padding-left: 0">钱包地址: </label>
      <el-input
        v-model="address"
        placeholder="钱包地址"
        style="width: 345px;"
      />
      <el-button type="primary" @click="fetchData">搜索</el-button>
    </div>
    <div class="sels" style="font-weight:bold;margin-top:30px;margin-bottom:10px">冻结解冻记录: </div>
    <el-table
      :data="list"
      element-loading-text="Loading"
      border
      fit
      highlight-current-row
    >
      <el-table-column align="center" label="时间" width="95">
        <template slot-scope="scope">
          {{ scope.$index }}
        </template>
      </el-table-column>
      <el-table-column label="钱包名称" width="110" >
        <template slot-scope="scope">
          {{ scope.row.title }}
        </template>
      </el-table-column>
      <el-table-column label="钱包地址" align="center">
        <template slot-scope="scope">
          <span>{{ scope.row.author }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" width="110" align="center">
        <template slot-scope="scope">
          {{ scope.row.pageviews }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { getLockAddr } from "@/api/index";

export default {
  filters: {
    statusFilter(status) {
      const statusMap = {
        published: "success",
        draft: "gray",
        deleted: "danger",
      };
      return statusMap[status];
    },
  },
  data() {
    return {
      address:'',
      list: null,
    };
  },
  created() {
  },
  methods: {
    fetchData() {
      // this.listLoading = true
      getLockAddr({
        address:this.address
      }).then(res => {
        console.log(res)
      })
    },
  },
};
</script>
